# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-webdriver-manager
_pkgname=webdriver_manager
pkgver=4.0.2
pkgrel=3
pkgdesc='Library provides the way to automatically manage drivers for different browsers.'
arch=('any')
url='https://pypi.org/project/webdriver-manager/#files'
license=('MIT')
depends=('python' 'python-tqdm' 'python-requests' 'python-dotenv')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('b0a4bd91666fdbcb627f21f627582a947d1e719679fd3b104014ee3d284059fe0cc218bdd442c396718f211f9e73db831566ff3ba35ffdeee5514858572b25e6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

